import { inject } from "vue";
export function useDemo() {
  const wsInit: any = inject("wsInit");

  const useTestApi = (data: any, cb: () => any) => {
    wsInit({ key: "userUpload", ...data }, (value: any) => cb && cb?.());
  };

  return {
    useTestApi,
  };
}
